package com.laicunba.service.fuiou;

import com.laicunba.constant.GloabConstant;

public interface FuiouOrderCreateService {
	class CreateOrderParam {
		// MAX(12) 客户支付订单的总金额，一笔订单 一个，以分为单位。不可以为零， 不能 有小数点，必需符合金额标准
		private long amt;
		private String rmk1; // max: 256
		private String rmk2;// 商家订单号
		private String rmk3;
		private String sign; // MchntCd + "|"+Amt+"|"+mchnt_key 做 md5 摘要

		public long getAmt() {
			return amt;
		}

		public String getRmk1() {
			return rmk1;
		}

		public String getRmk2() {
			return rmk2;
		}

		public String getRmk3() {
			return rmk3;
		}

		public String getSign() {
			return sign;
		}

		public void setAmt(long amt) {
			this.amt = amt;
		}

		public void setRmk1(String rmk1) {
			this.rmk1 = rmk1;
		}

		/**
		 * 商家订单号
		 * 
		 * @param rmk2
		 */
		public void setRmk2(String rmk2) {
			this.rmk2 = rmk2;
		}

		public void setRmk3(String rmk3) {
			this.rmk3 = rmk3;
		}

		public void setSign(String sign) {
			this.sign = sign;
		}

	}

	class CreateOrderResult {
		private String rcd;
		private String rdesc;
		private String orderId;
		private String sign;

		public void setRdesc(String rdesc) {
			this.rdesc = rdesc;
		}

		public String getRdesc() {
			return rdesc;
		}

		public String getRcd() {
			return rcd;
		}

		public String getOrderId() {
			return orderId;
		}

		public String getSign() {
			return sign;
		}

		public void setRcd(String rcd) {
			this.rcd = rcd;
		}

		public void setOrderId(String orderId) {
			this.orderId = orderId;
		}

		public void setSign(String sign) {
			this.sign = sign;
		}

		@Override
		public String toString() {
			return "CreateOrderResult [rcd=" + rcd + ", rdesc=" + rdesc + ", orderId=" + orderId + ", sign=" + sign + "]";
		}

	}

	/**
	 * 创建一个订单
	 * 
	 * @param param
	 * @return
	 */
	CreateOrderResult createOrder(CreateOrderParam param);
}
